From 3058c3e6a9578bc07784f4f7ca65315b76014cd2 Mon Sep 17 00:00:00 2001 From: Olivier Fourdan Date: Tue, 27 Oct 2015 18:05:39 +0100 Subject: [PATCH] wayland: configure clients that resize themselves Make sure the wayland backend sets a new geometry when the client resizes itself, otherwise the compositor won't be notified and may revert to the old size on state changes. Thanks to Jasper St. Pierre who pointed out the problem in gtk+. bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=755051 --- gdk/wayland/gdkwindow-wayland.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c index a71e60ea1e..4df37f11b2 100644 --- a/gdk/wayland/gdkwindow-wayland.c +++ b/gdk/wayland/gdkwindow-wayland.c @@ -2387,10 +2387,6 @@ gdk_wayland_window_set_shadow_width (GdkWindow *window, if (GDK_WINDOW_DESTROYED (window)) return; - if (left == impl->margin_left && right == impl->margin_right && - top == impl->margin_top && bottom == impl->margin_bottom) - return; - /* Reconfigure window to keep the same window geometry */ new_width = window->width - (impl->margin_left + impl->margin_right) + (left + right); -- 2.30.2